<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../../common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${content_tittle}</title>
<link href="${css_ctx}/style_login.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${js_ctx}/jquery-1.6.js"></script>
<script type="text/javascript" src="${js_ctx}/jquery.validate.js"></script>
<script type="text/javascript" src="${ctx }/fckeditor/fckeditor.js"></script>
	<script type="text/javascript">
		window.onload = function()
		{
			var oFCKeditor = new FCKeditor( 'remarks' ) ;
			oFCKeditor.BasePath = "${ctx }/fckeditor/" ;
			oFCKeditor.Width = "100%";
			oFCKeditor.Height = "300";
			oFCKeditor.ReplaceTextarea() ;
		}
	</script>
<script type="text/javascript">
            $(function(){
            
               $("#groupid").validate({
                    valid: function(val){
                        return val != "";
                    },
                    errorMessage: function(val){
                        return "你还没有选择教研室！";
                    },
                    appendCompletionIcon: true
                });
                
                $("#objectid").validate({
                    valid: function(val){
                        return val != "";
                    },
                    errorMessage: function(val){
                        return "你还没有选择学科！";
                    },
                    appendCompletionIcon: true
                });
                $("#realname").validate({
                    valid: function(val){
                        return val != "";
                    },
                    errorMessage: function(val){
                        return "不能为空！";
                    },
                    appendCompletionIcon: true
                });
            });
        </script>
</head>

<body class="main_m"> 
<!-- main_title -->
<div class="main_title">
  <h3>${content_tittle}</h3>
  <c:remove var="content_tittle" scope="session"/>
</div>
<!-- End of main_title -->

<!-- 提示信息 -->
<c:if test="${!empty msg}">
   <div class="box width650 ${msgrank}">${msg}</div>
   <c:remove var="msg" scope="session"/>
</c:if>
<!-- End of 提示信息 -->

<!--主体内容-->
<div class="width700">
  <form id="form1" method="post" action="${ctx}/account.do?cmd=usersetsubmit">
    <input type="hidden" id="userid" value="${account.userid}" name="userid"/>
    <p>
    <label for="username"><font>*</font>用户名：${account.username}</label><br/>
    </p>
    
    <p>
    <label for="groupid"><font>*</font>所在教研组：</label><br/>
    <select name="groupid" id="groupid">
      <option value="">请选择教研组</option>
     <c:forEach items="${listClassgroup}" var="Classgroup">
       <option value="${Classgroup.groupid }" <c:if test="${Classgroup.groupid eq account.groupid}">selected="selected"</c:if>>${Classgroup.groupname }</option>
     </c:forEach>
     </select> 
    </p>
    
    <p>
    <label for="objectid"><font>*</font>学科：</label><br/>
    <select name="objectid" id="objectid">
      <option value="">请选择学科</option>
     <c:forEach items="${listCourse}" var="course">
       <option value="${course.objectid }" <c:if test="${course.objectid eq account.objectid}">selected="selected"</c:if>>${course.objectname }</option>
     </c:forEach>
     </select> 
    </p>
    
     <p>
    <label for="realname"><font>*</font>真实名字：</label><br/>
    <input type="text" id="realname" class="full" value="${account.realname }" name="realname"/>
    </p>
    
     <p>
    <label for="usersex">性别：</label>
	<input type="radio" id="usersex1" class="" value="1" name="usersex" <c:if test="${!('2' eq account.usersex)}">checked="checked"</c:if>/>
	<label class="choice" for="usersex1">男</label>&nbsp;&nbsp;
	<input type="radio" id="usersex2" class="" value="2" name="usersex" <c:if test="${'2' eq account.usersex}">checked="checked"</c:if>/>
	<label class="choice" for="usersex2">女</label>
    </p>
    
    <p>
    <label for="userphone">电话号码：</label><br/>
    <input type="text" id="userphone" class="full" value="${account.userphone}" name="userphone"/>
    </p>
    <p>
    <label for="remarks">备注信息：</label><br/>
	<textarea id="remarks" name="remarks" >${account.remarks}</textarea>
	</p>
	<br />
	<div style="text-align:center;">
    <input type="submit" class="btn btn-green big1" value="提交"/> &nbsp; &nbsp;
    <input type="reset" class="btn btn-green big1" value="取消" />
    </div>
    </form>
    <br />
</div>
<!-- End of 主体内容 -->
<!-- footer -->
<div id="footer_main">
    <%@ include file="../base/footer.jsp"%>
</div>
<!-- End of footer -->
</body>
</html>
